##############################################################
# 10-Dars
c = 'Salom, dunyo!'
print(len(c))
print(c.capitalize())
c1 = c.capitalize()
print(c, c1)
print(c.center(25))
print(c.center(28, '*'))
print(c.count('o'))
print(c.count('d'))
print(c.count('a', 0, 9))
print(c.find('n'))
print(c.replace('a', 'y'))
print(c.split(','))
print(c.isdigit())
c = 'uhdr'
print(c.isalpha())

##########################################################################################################
# 11-Dars

ism = 'Og`abek'
yosh = 11
yil = 2011; oy = 'may'; kun = 29
print('Salom, mening ismim ' + ism + '. ' + 'Men ' + str(yosh) + ' daman.')
print('Men ' + str(yil) + '-yil ' + str(kun) + '-' + oy + 'da tug`ilganman.')
print('Men %(a)d yoshdaman. Men %(b)d-yil %(z)d-%(oy)sda tug`ilganman. ' %{'a':yosh, 'b':yil, 'z':kun, 'oy':oy})
print('Mening ismim %s. Men %d yoshdaman' %(ism, yosh))
print('Mening ismim %s. Men %d yoshdaman' %('Og`abek', 112))
print('Narsa: %s. Narxi: %0.2f$' %('daftar', 5.1))
print('Narsa: {}. Narxi: {}$' .format('daftar', 5.1))
print('Narsa: {1}. Narxi: {0}$' .format('daftar', 5.1))
print('Narsa: {a}. Narxi: {b}$' .format(a = ism, b = yosh))
print(f'Narsa: {ism}. Narxi: {yosh+2}$')
print(f'Narsa: {ism} pomidor. Narxi: {yosh+-8}$')
print(f'Narsa: {ism}. Narxi: {yosh+2}$')
print(f'5 + 2 = {5 + 2}')
print('10 + 20 = %d' %(10 + 20))
print('Men {}man.' .format('pamidor'))
print('{} {} yoshda.' .format('Shamshod', 9))
print('{} {} kg.' .format('Qo`y', 46))
print(28/5)

##########################################################################################################
# 12-Dars

print(4==3)
print(4!=3)
print(4>3)
print(4<3)
print(8>=9)
print(8<=9)
print('& belgisi')
print(1&0) # and
print(1&1)
print(0&1)
print(0&0)
print('| belgisi')
print(1|0) # or
print(1|1)
print(0|1)
print(0|0)
print('^ faqat yoki')
print(1^0) 
print(1^1)
print(0^1)
print(0^0)
